package com.swyc.osschat.Test.designMode.adapter.run;

import com.swyc.osschat.Test.designMode.adapter.base.SdCard;

/**
 * @description 电脑类：
 * @Author: z156940l@outlook.com
 * @className Computer
 * @Date: 2022/7/25 17:37
 */
public class Computer {
    private SdCard sdCard;

    public Computer(SdCard sdCard){
        this.sdCard = sdCard;
    }
    //读取数据
    public String readData(){
        return sdCard.readSdCard();
    }
    //写入数据
    public void writrData(String data){
        sdCard.writeSdData(data);
    }
}
